import React, {Component} from 'react';
import {

} from 'react-native';

import SizeUtils from '../common/SizeUtils';

export default class TComponent extends Component {
  constructor(props) {
    super(props);

    this.state = {

    };
  }
  _getSizeStyle() {
    let style = {};
    if(this.props.style.width != undefined) {
      style.width = this.props.translatedSize == true ? this.props.style.width :
        SizeUtils.translateDesignWidthToCode(this.props.style.width);
    }
    if(this.props.style.height != undefined) {
      style.height = this.props.translatedSize == true ? this.props.style.height:
        SizeUtils.translateDesignHeightToCode(this.props.style.height);
    }
    return style;
  }
}
